package miku.firstgame.net.pack
{
	import miku.firstgame.constrants.ProtocalConstants;
	import miku.firstgame.net.ByteArrayEx;

	public class SetToolToUserResponsePack extends AbstractReponsePack
	{
		public var cardId:int;
		public var targetUserId:int;
		public var sourceUserId:int;

		public function SetToolToUserResponsePack(data:ByteArrayEx)
		{
			super(data);
		}

		override public function get tag():int
		{
			return ProtocalConstants.SET_TOOL_TO_USER;
		}

		override public function decode():void
		{
			super.decode();
			data.position = 4;
			cardId = data.readInt();
			targetUserId = data.readUnsignedInt();
			sourceUserId = data.readUnsignedInt();
		}
	}
}
